//
//  XLVersionInfoViewController.m
//  Mine
//
//  Created by 于鹏 on 2017/8/30.
//  Copyright © 2017年 YIVIEW. All rights reserved.
//

#import "XLVersionInfoViewController.h"

//#import <PPNetworkHelper.h>
//#import <XLBaseModule/XLRequestURLInfo.h>
//#import <UIImageView+WebCache.h>
#import "PPNetworkHelper.h"
#import "XLRequestURLInfo.h"
#import "UIImageView+WebCache.h"
@interface XLVersionInfoViewController ()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *versionLabel;
@property (weak, nonatomic) IBOutlet UILabel *companyLabel;
@end

@implementation XLVersionInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"版本信息";
    NSDictionary *infoDictoinary = [[NSBundle mainBundle] infoDictionary];
    NSString *app_Name = [infoDictoinary objectForKey:@"CFBundleDisplayName"];
    NSString *app_Version = [infoDictoinary objectForKey:@"CFBundleShortVersionString"];
    self.versionLabel.text = [NSString stringWithFormat:@"%@  版本号:%@",app_Name,app_Version];
}

- (void)initData {
//    [super initData];
//    [PPNetworkHelper GET:Web_Set_getCompany parameters:nil responseCache:^(id responseCache) {
//    } success:^(id responseObject) {
//        if ([responseObject[@"IsSuccessful"] integerValue] == 1){
//            [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:[kDomain_BgImg stringByAppendingString:responseObject[@"LogoImg"]]] placeholderImage:nil options:SDWebImageProgressiveDownload];
//            
//            //            self.versionLabel.text = [NSString stringWithFormat:@"版本号：%@",responseObject[@"SoftVersion"]];
//            
////            self.webSitesLabel.text = [NSString stringWithFormat:@"%@",responseObject[@"WebSite"]];
//            
//            self.companyLabel.text = [NSString stringWithFormat:@"%@",responseObject[@"CopyRight"]];
//            
//        }else{
//            [self exitLogin:responseObject[@"Msg"]];
//        }
//        [self dismissHUD];
//
//    } failure:^(NSError *error) {
//        XLLog(@"%@",error);
//        [self showErrorWithStatus:NetworkTimeout];
//    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
